//	--------------------------------------------------------------------
//	Copyright(C) 2006,2007 Zhao Yukun. All rights reserved.
//	This file is a part of the Xeres system.
//	Xeres 2007
//	Contact : xeres.engine@gmail.com
//	$(reservedInfo)
//	$(reservedDeclaration)
//	--------------------------------------------------------------------
///	@file	<message_filter.h>
///	@path	~/src/appear/app/
///	@date	2007/11/06
///	@desc	Windows message filter.

#pragma once

#include "xeres.h"

#include "config/os.h"

namespace xeres {

	/*!
		\class	MessageFilter
		\brief	Interface to adapter message filter.
				App will run implementations one by one,
				to filter messages to active specific event.
	*/
	class MessageFilter
	{
	public:

		/// \ctor
		MessageFilter( void ) {}

		/// \dtor
		virtual ~MessageFilter( void ) {}

	//@ interface

		/*!
			\brief		Filter messages,
						return true to stop next level,
						otherwise engine will search next filter.
		*/
		virtual bool Filter( HWND hWnd , UINT message , WPARAM wParam , LPARAM lParam ) = 0;

	};

} // namespace xeres
